
let client = new AWS.S3({
    accessKeyId: 'your access key',
    secretAccessKey: 'your secret key',
    endpoint: 'ZOS endpoint',
    sslEnabled: true,
    s3ForcePathStyle: true,
});

Bucket='bucket_name', Key='obj_name'
let params = {
    Bucket: "bucket_name",
    Key: "obj_name"
};

client.getObject(params, function(err, data) {
    if (err) console.log(err, err.stack); // an error occurred
    else console.log(data);           // successful response
});
